<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            font-size: 24px;
        }
        
        .practice,
        #list {
            margin-top: 100px;
            margin-left: 500px;
        }
        
        #list {
            margin-top: 10px;
        }
    </style>
</head>

<body>

    <h3 class="practice">学生信息表</h3>

    <h3 id="list">信息加载中……</h3>
    <script>
        const students = [{
            username: 'Cai',
            age: 18,
            sex: 'male'
        }, {
            username: 'zhangsan',
            age: 30,
            sex: 'male'
        }, {
            username: 'lisi',
            age: 13,
            sex: 'male'
        }]

        const list = document.getElementById("list");
        let html = '';
        for (let i = 0; i < students.length; i++) {
            html += `<li>我的名字是${students[i].username},我的年龄是${students[i].age},我的性别是${students[i].sex}</li>`;
        }
        list.innerHTML = html;
    </script>
</body>

</html>